using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BeatingMole
{
    class XmlGameSave
    {
        public CInfoPlayer Player { set; get; }
        public int Score { set; get; }
    }
    class CInfoLoadAndSaveGame
    {
        #region "Variable"
        XmlGameSave _xmlSaveGame = new XmlGameSave(); 
        CInfoLoadAndSaveGame InfoLoadAndSaveGame;
        ContentManager _Content;
        private Texture2D _bgSaveAndLoadGame;
        private Texture2D _btnLoadGame;
        private Texture2D _btnBack;
        private Texture2D _btnPre;
        private Texture2D _btnNext;
        private Texture2D _btnSelect;
        private Texture2D _bgBlack;

        private Rectangle _recBtnBack;
        private Rectangle _recBtnPre;
        private Rectangle _recBtnNext;
        #endregion
        #region "Properties"
        public Texture2D BgBlack
        {
            set { _bgBlack = value; }
            get { return _bgBlack; }
        }
        public Texture2D BtnSelect
        {
            set { _btnSelect = value; }
            get { return _btnSelect; }
        }
        public Texture2D BgSaveAndLoadGame
        {
            set { _bgSaveAndLoadGame = value; }
            get { return _bgSaveAndLoadGame; }
        }
        public Texture2D BtnLoadGame
        {
            set { _btnLoadGame = value; }
            get { return _btnLoadGame; }
        }
        public Texture2D BtnBack
        {
            set { _btnBack = value; }
            get { return _btnBack; }
        }
        public Texture2D BtnPre
        {
            set { _btnPre = value; }
            get { return _btnPre; }
        }
        public Texture2D BtnNext
        {
            set { _btnNext = value; }
            get { return _btnNext; }
        }

        public Rectangle RecBtnBack
        {
            set { _recBtnBack = value; }
            get { return _recBtnBack; }
        }
        public Rectangle RecBtnPre
        {
            set { _recBtnPre = value; }
            get { return _recBtnPre; }
        }
        public Rectangle RecBtnNext
        {
            set { _recBtnNext = value; }
            get { return _recBtnNext; }
        }
        public XmlGameSave XmlSaveGame
        {
            set { _xmlSaveGame = value; }
            get { return _xmlSaveGame; }
        }
        #endregion
        #region "Constructor"
        public CInfoLoadAndSaveGame(ContentManager content)
        {
            _Content = content;
            BgSaveAndLoadGame = _Content.Load<Texture2D>(@"Resource/LoadingGame/LoadAndSaveGame");
            BtnPre = _Content.Load<Texture2D>(@"Resource/LoadingGame/btnPrevious");
            BtnNext = _Content.Load<Texture2D>(@"Resource/LoadingGame/btnNext");
            BtnBack = _Content.Load<Texture2D>(@"Resource/LoadingGame/btnPrevious");
            BtnSelect = _Content.Load<Texture2D>(@"Resource/LoadingGame/btnSelect");
            BgBlack = _Content.Load<Texture2D>(@"Resource/Maps/Pause");

            RecBtnBack = new Rectangle(720, 10, BtnBack.Width, BtnBack.Height);
        }
        #endregion
    }
}
